package com.onedec.entity;

import java.util.ArrayList;
import java.util.List;

public class OnedecMaterialListExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OnedecMaterialListExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMaterialListIdIsNull() {
            addCriterion("material_list_id is null");
            return (Criteria) this;
        }

        public Criteria andMaterialListIdIsNotNull() {
            addCriterion("material_list_id is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialListIdEqualTo(Integer value) {
            addCriterion("material_list_id =", value, "materialListId");
            return (Criteria) this;
        }

        public Criteria andMaterialListIdNotEqualTo(Integer value) {
            addCriterion("material_list_id <>", value, "materialListId");
            return (Criteria) this;
        }

        public Criteria andMaterialListIdGreaterThan(Integer value) {
            addCriterion("material_list_id >", value, "materialListId");
            return (Criteria) this;
        }

        public Criteria andMaterialListIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("material_list_id >=", value, "materialListId");
            return (Criteria) this;
        }

        public Criteria andMaterialListIdLessThan(Integer value) {
            addCriterion("material_list_id <", value, "materialListId");
            return (Criteria) this;
        }

        public Criteria andMaterialListIdLessThanOrEqualTo(Integer value) {
            addCriterion("material_list_id <=", value, "materialListId");
            return (Criteria) this;
        }

        public Criteria andMaterialListIdIn(List<Integer> values) {
            addCriterion("material_list_id in", values, "materialListId");
            return (Criteria) this;
        }

        public Criteria andMaterialListIdNotIn(List<Integer> values) {
            addCriterion("material_list_id not in", values, "materialListId");
            return (Criteria) this;
        }

        public Criteria andMaterialListIdBetween(Integer value1, Integer value2) {
            addCriterion("material_list_id between", value1, value2, "materialListId");
            return (Criteria) this;
        }

        public Criteria andMaterialListIdNotBetween(Integer value1, Integer value2) {
            addCriterion("material_list_id not between", value1, value2, "materialListId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdIsNull() {
            addCriterion("material_id is null");
            return (Criteria) this;
        }

        public Criteria andMaterialIdIsNotNull() {
            addCriterion("material_id is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialIdEqualTo(Integer value) {
            addCriterion("material_id =", value, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdNotEqualTo(Integer value) {
            addCriterion("material_id <>", value, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdGreaterThan(Integer value) {
            addCriterion("material_id >", value, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("material_id >=", value, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdLessThan(Integer value) {
            addCriterion("material_id <", value, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdLessThanOrEqualTo(Integer value) {
            addCriterion("material_id <=", value, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdIn(List<Integer> values) {
            addCriterion("material_id in", values, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdNotIn(List<Integer> values) {
            addCriterion("material_id not in", values, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdBetween(Integer value1, Integer value2) {
            addCriterion("material_id between", value1, value2, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdNotBetween(Integer value1, Integer value2) {
            addCriterion("material_id not between", value1, value2, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialListNumIsNull() {
            addCriterion("material_list_num is null");
            return (Criteria) this;
        }

        public Criteria andMaterialListNumIsNotNull() {
            addCriterion("material_list_num is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialListNumEqualTo(Integer value) {
            addCriterion("material_list_num =", value, "materialListNum");
            return (Criteria) this;
        }

        public Criteria andMaterialListNumNotEqualTo(Integer value) {
            addCriterion("material_list_num <>", value, "materialListNum");
            return (Criteria) this;
        }

        public Criteria andMaterialListNumGreaterThan(Integer value) {
            addCriterion("material_list_num >", value, "materialListNum");
            return (Criteria) this;
        }

        public Criteria andMaterialListNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("material_list_num >=", value, "materialListNum");
            return (Criteria) this;
        }

        public Criteria andMaterialListNumLessThan(Integer value) {
            addCriterion("material_list_num <", value, "materialListNum");
            return (Criteria) this;
        }

        public Criteria andMaterialListNumLessThanOrEqualTo(Integer value) {
            addCriterion("material_list_num <=", value, "materialListNum");
            return (Criteria) this;
        }

        public Criteria andMaterialListNumIn(List<Integer> values) {
            addCriterion("material_list_num in", values, "materialListNum");
            return (Criteria) this;
        }

        public Criteria andMaterialListNumNotIn(List<Integer> values) {
            addCriterion("material_list_num not in", values, "materialListNum");
            return (Criteria) this;
        }

        public Criteria andMaterialListNumBetween(Integer value1, Integer value2) {
            addCriterion("material_list_num between", value1, value2, "materialListNum");
            return (Criteria) this;
        }

        public Criteria andMaterialListNumNotBetween(Integer value1, Integer value2) {
            addCriterion("material_list_num not between", value1, value2, "materialListNum");
            return (Criteria) this;
        }

        public Criteria andMaterialListTotalIsNull() {
            addCriterion("material_list_total is null");
            return (Criteria) this;
        }

        public Criteria andMaterialListTotalIsNotNull() {
            addCriterion("material_list_total is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialListTotalEqualTo(Double value) {
            addCriterion("material_list_total =", value, "materialListTotal");
            return (Criteria) this;
        }

        public Criteria andMaterialListTotalNotEqualTo(Double value) {
            addCriterion("material_list_total <>", value, "materialListTotal");
            return (Criteria) this;
        }

        public Criteria andMaterialListTotalGreaterThan(Double value) {
            addCriterion("material_list_total >", value, "materialListTotal");
            return (Criteria) this;
        }

        public Criteria andMaterialListTotalGreaterThanOrEqualTo(Double value) {
            addCriterion("material_list_total >=", value, "materialListTotal");
            return (Criteria) this;
        }

        public Criteria andMaterialListTotalLessThan(Double value) {
            addCriterion("material_list_total <", value, "materialListTotal");
            return (Criteria) this;
        }

        public Criteria andMaterialListTotalLessThanOrEqualTo(Double value) {
            addCriterion("material_list_total <=", value, "materialListTotal");
            return (Criteria) this;
        }

        public Criteria andMaterialListTotalIn(List<Double> values) {
            addCriterion("material_list_total in", values, "materialListTotal");
            return (Criteria) this;
        }

        public Criteria andMaterialListTotalNotIn(List<Double> values) {
            addCriterion("material_list_total not in", values, "materialListTotal");
            return (Criteria) this;
        }

        public Criteria andMaterialListTotalBetween(Double value1, Double value2) {
            addCriterion("material_list_total between", value1, value2, "materialListTotal");
            return (Criteria) this;
        }

        public Criteria andMaterialListTotalNotBetween(Double value1, Double value2) {
            addCriterion("material_list_total not between", value1, value2, "materialListTotal");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNull() {
            addCriterion("project_id is null");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNotNull() {
            addCriterion("project_id is not null");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualTo(Integer value) {
            addCriterion("project_id =", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualTo(Integer value) {
            addCriterion("project_id <>", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThan(Integer value) {
            addCriterion("project_id >", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("project_id >=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThan(Integer value) {
            addCriterion("project_id <", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualTo(Integer value) {
            addCriterion("project_id <=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIn(List<Integer> values) {
            addCriterion("project_id in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotIn(List<Integer> values) {
            addCriterion("project_id not in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdBetween(Integer value1, Integer value2) {
            addCriterion("project_id between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotBetween(Integer value1, Integer value2) {
            addCriterion("project_id not between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andOperationNumIsNull() {
            addCriterion("operation_num is null");
            return (Criteria) this;
        }

        public Criteria andOperationNumIsNotNull() {
            addCriterion("operation_num is not null");
            return (Criteria) this;
        }

        public Criteria andOperationNumEqualTo(Integer value) {
            addCriterion("operation_num =", value, "operationNum");
            return (Criteria) this;
        }

        public Criteria andOperationNumNotEqualTo(Integer value) {
            addCriterion("operation_num <>", value, "operationNum");
            return (Criteria) this;
        }

        public Criteria andOperationNumGreaterThan(Integer value) {
            addCriterion("operation_num >", value, "operationNum");
            return (Criteria) this;
        }

        public Criteria andOperationNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("operation_num >=", value, "operationNum");
            return (Criteria) this;
        }

        public Criteria andOperationNumLessThan(Integer value) {
            addCriterion("operation_num <", value, "operationNum");
            return (Criteria) this;
        }

        public Criteria andOperationNumLessThanOrEqualTo(Integer value) {
            addCriterion("operation_num <=", value, "operationNum");
            return (Criteria) this;
        }

        public Criteria andOperationNumIn(List<Integer> values) {
            addCriterion("operation_num in", values, "operationNum");
            return (Criteria) this;
        }

        public Criteria andOperationNumNotIn(List<Integer> values) {
            addCriterion("operation_num not in", values, "operationNum");
            return (Criteria) this;
        }

        public Criteria andOperationNumBetween(Integer value1, Integer value2) {
            addCriterion("operation_num between", value1, value2, "operationNum");
            return (Criteria) this;
        }

        public Criteria andOperationNumNotBetween(Integer value1, Integer value2) {
            addCriterion("operation_num not between", value1, value2, "operationNum");
            return (Criteria) this;
        }

        public Criteria andMaterialListStatusIsNull() {
            addCriterion("material_list_status is null");
            return (Criteria) this;
        }

        public Criteria andMaterialListStatusIsNotNull() {
            addCriterion("material_list_status is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialListStatusEqualTo(Integer value) {
            addCriterion("material_list_status =", value, "materialListStatus");
            return (Criteria) this;
        }

        public Criteria andMaterialListStatusNotEqualTo(Integer value) {
            addCriterion("material_list_status <>", value, "materialListStatus");
            return (Criteria) this;
        }

        public Criteria andMaterialListStatusGreaterThan(Integer value) {
            addCriterion("material_list_status >", value, "materialListStatus");
            return (Criteria) this;
        }

        public Criteria andMaterialListStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("material_list_status >=", value, "materialListStatus");
            return (Criteria) this;
        }

        public Criteria andMaterialListStatusLessThan(Integer value) {
            addCriterion("material_list_status <", value, "materialListStatus");
            return (Criteria) this;
        }

        public Criteria andMaterialListStatusLessThanOrEqualTo(Integer value) {
            addCriterion("material_list_status <=", value, "materialListStatus");
            return (Criteria) this;
        }

        public Criteria andMaterialListStatusIn(List<Integer> values) {
            addCriterion("material_list_status in", values, "materialListStatus");
            return (Criteria) this;
        }

        public Criteria andMaterialListStatusNotIn(List<Integer> values) {
            addCriterion("material_list_status not in", values, "materialListStatus");
            return (Criteria) this;
        }

        public Criteria andMaterialListStatusBetween(Integer value1, Integer value2) {
            addCriterion("material_list_status between", value1, value2, "materialListStatus");
            return (Criteria) this;
        }

        public Criteria andMaterialListStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("material_list_status not between", value1, value2, "materialListStatus");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak1IsNull() {
            addCriterion("material_list_bak1 is null");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak1IsNotNull() {
            addCriterion("material_list_bak1 is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak1EqualTo(String value) {
            addCriterion("material_list_bak1 =", value, "materialListBak1");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak1NotEqualTo(String value) {
            addCriterion("material_list_bak1 <>", value, "materialListBak1");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak1GreaterThan(String value) {
            addCriterion("material_list_bak1 >", value, "materialListBak1");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak1GreaterThanOrEqualTo(String value) {
            addCriterion("material_list_bak1 >=", value, "materialListBak1");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak1LessThan(String value) {
            addCriterion("material_list_bak1 <", value, "materialListBak1");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak1LessThanOrEqualTo(String value) {
            addCriterion("material_list_bak1 <=", value, "materialListBak1");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak1Like(String value) {
            addCriterion("material_list_bak1 like", value, "materialListBak1");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak1NotLike(String value) {
            addCriterion("material_list_bak1 not like", value, "materialListBak1");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak1In(List<String> values) {
            addCriterion("material_list_bak1 in", values, "materialListBak1");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak1NotIn(List<String> values) {
            addCriterion("material_list_bak1 not in", values, "materialListBak1");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak1Between(String value1, String value2) {
            addCriterion("material_list_bak1 between", value1, value2, "materialListBak1");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak1NotBetween(String value1, String value2) {
            addCriterion("material_list_bak1 not between", value1, value2, "materialListBak1");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak2IsNull() {
            addCriterion("material_list_bak2 is null");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak2IsNotNull() {
            addCriterion("material_list_bak2 is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak2EqualTo(String value) {
            addCriterion("material_list_bak2 =", value, "materialListBak2");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak2NotEqualTo(String value) {
            addCriterion("material_list_bak2 <>", value, "materialListBak2");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak2GreaterThan(String value) {
            addCriterion("material_list_bak2 >", value, "materialListBak2");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak2GreaterThanOrEqualTo(String value) {
            addCriterion("material_list_bak2 >=", value, "materialListBak2");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak2LessThan(String value) {
            addCriterion("material_list_bak2 <", value, "materialListBak2");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak2LessThanOrEqualTo(String value) {
            addCriterion("material_list_bak2 <=", value, "materialListBak2");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak2Like(String value) {
            addCriterion("material_list_bak2 like", value, "materialListBak2");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak2NotLike(String value) {
            addCriterion("material_list_bak2 not like", value, "materialListBak2");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak2In(List<String> values) {
            addCriterion("material_list_bak2 in", values, "materialListBak2");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak2NotIn(List<String> values) {
            addCriterion("material_list_bak2 not in", values, "materialListBak2");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak2Between(String value1, String value2) {
            addCriterion("material_list_bak2 between", value1, value2, "materialListBak2");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak2NotBetween(String value1, String value2) {
            addCriterion("material_list_bak2 not between", value1, value2, "materialListBak2");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak3IsNull() {
            addCriterion("material_list_bak3 is null");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak3IsNotNull() {
            addCriterion("material_list_bak3 is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak3EqualTo(String value) {
            addCriterion("material_list_bak3 =", value, "materialListBak3");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak3NotEqualTo(String value) {
            addCriterion("material_list_bak3 <>", value, "materialListBak3");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak3GreaterThan(String value) {
            addCriterion("material_list_bak3 >", value, "materialListBak3");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak3GreaterThanOrEqualTo(String value) {
            addCriterion("material_list_bak3 >=", value, "materialListBak3");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak3LessThan(String value) {
            addCriterion("material_list_bak3 <", value, "materialListBak3");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak3LessThanOrEqualTo(String value) {
            addCriterion("material_list_bak3 <=", value, "materialListBak3");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak3Like(String value) {
            addCriterion("material_list_bak3 like", value, "materialListBak3");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak3NotLike(String value) {
            addCriterion("material_list_bak3 not like", value, "materialListBak3");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak3In(List<String> values) {
            addCriterion("material_list_bak3 in", values, "materialListBak3");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak3NotIn(List<String> values) {
            addCriterion("material_list_bak3 not in", values, "materialListBak3");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak3Between(String value1, String value2) {
            addCriterion("material_list_bak3 between", value1, value2, "materialListBak3");
            return (Criteria) this;
        }

        public Criteria andMaterialListBak3NotBetween(String value1, String value2) {
            addCriterion("material_list_bak3 not between", value1, value2, "materialListBak3");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}